.medicineDetail {
  .header {
    display: flex;
    align-items: center;
    gap: 16px;

    .title {
      margin: 0;
      font-size: 20px;
      color: #1890ff;
    }
  }

  .content {
    .gallery {
      margin-bottom: 24px;

      .carousel {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        background-color: #f5f5f5;
        border-radius: 4px;
        overflow: hidden;

        .imageWrapper {
          width: 100%;
          height: 400px;
          display: flex;
          align-items: center;
          justify-content: center;
          background-color: #f5f5f5;

          .image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
          }
        }
      }

      .noImage {
        width: 100%;
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
        border-radius: 4px;
      }
    }

    .purchase {
      margin-bottom: 24px;

      .price {
        margin-bottom: 16px;
        
        .symbol {
          font-size: 20px;
          color: #ff4d4f;
        }

        .amount {
          font-size: 32px;
          font-weight: bold;
          color: #ff4d4f;
          margin-left: 4px;
        }
      }

      .stock {
        color: #666;
        margin-bottom: 16px;
      }

      .quantity {
        margin-bottom: 24px;

        .label {
          margin-right: 8px;
          color: #666;
        }
      }

      .actions {
        display: flex;
        justify-content: center;
      }
    }

    .descriptions {
      margin-bottom: 24px;
    }

    .section {
      margin-bottom: 24px;

      &.warning {
        :global {
          .ant-card-head {
            background-color: #fff1f0;
            border-bottom-color: #ffccc7;
          }
          .ant-card-head-title {
            color: #cf1322;
          }
        }
      }

      .text {
        white-space: pre-wrap;
        line-height: 1.8;
      }
    }
  }
}

.loading {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
} 